package com.project.yuepai.dto;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 展示用户的动态，展示地方有两处，一个是前端用户界面，一个是后台管理员界面
 * 用户可浏览，管理员可查看，且在需要删除的时候可以删除
 */

public class DynamicDto {

    private String userId;
    private int userRole;
    private String nickName;
    private String userPhone;
    private int dynamicId;
    private String content;
    private LocalDateTime publishTime;
    private String imagePaths; //存放一个动态中所有图片的路径，用;隔开
    private List<String> imageSet;//每个动态的图片集

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public int getUserRole() {
        return userRole;
    }

    public void setUserRole(int userRole) {
        this.userRole = userRole;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public int getDynamicId() {
        return dynamicId;
    }

    public void setDynamicId(int dynamicId) {
        this.dynamicId = dynamicId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public LocalDateTime getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(LocalDateTime publishTime) {
        this.publishTime = publishTime;
    }

    public String getImagePaths() {
        return imagePaths;
    }

    public void setImagePaths(String imagePaths) {
        this.imagePaths = imagePaths;
    }

    public String getImageSet() {
        return imageSet.toString();
    }

    public void setImageSet(List<String> imageSet) {
        this.imageSet = imageSet;
    }

    @Override
    public String toString() {
        return "DynamicDto{" +
                "userId='" + userId + '\'' +
                ", userRole=" + userRole +
                ", nickName='" + nickName + '\'' +
                ", userPhone='" + userPhone + '\'' +
                ", dynamicId=" + dynamicId +
                ", content='" + content + '\'' +
                ", publishTime=" + publishTime +
                ", imagePaths='" + imagePaths + '\'' +
                ", imageSet=" + imageSet +
                '}';
    }
}
